package com.tt.plat8.persistence.test;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * UserBean: tangtao
 * Date: 14-1-13
 * Time: 下午6:39
 * To change this template use File | Settings | File Templates.
 */

@Entity(name = "AUTHOR1")
@Table(name = "AUTHOR1")
public class AuthorBean {

    /** The author's email address */
    @Id
    @Column(nullable = false)
    private String email;

    /**
     * The author's full name
     */
    private String name;
    /**
     * The display name for this author
     */
    private String displayName;
    /**
     * A short bio for this author
     */
    private String bio;
    /**
     * The AuthorBean's date of birth
     */
    private Date dob;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public Date getDob() {
        return dob;
    }

    public void setDob(Date dob) {
        this.dob = dob;
    }
}
